package com.weijian.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serializable;

@Data
@Schema(description = "地址表")
@TableName(value = "address", autoResultMap = true)
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Address extends BaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 省
     */
    @Schema(description = "省")
    private String province;

    /**
     * 市
     */
    @Schema(description = "市")
    private String city;

    /**
     * 县/区
     */
    @Schema(description = "县/区")
    private String town;

    /**
     * 手机
     */
    @Schema(description = "手机")
    private String mobile;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String street;

    /**
     * 联系人
     */
    @Schema(description = "联系人")
    private String contact;

    /**
     * 是否是默认 1默认 0否
     */
    @Schema(description = "是否是默认 1默认 0否")
    private Integer isDefault;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String notes;
}
